package com.code.day19;

import java.util.Properties;
import java.util.Set;

public class Demo10Properties {
    public static void main(String[] args) {
        Properties properties = new Properties();
        properties.setProperty("username","刘大胆");
        properties.setProperty("password","123456");
        System.out.println(properties);
        System.out.println(properties.get("username"));
        System.out.println(properties.get("password"));
        Set<String> set = properties.stringPropertyNames();
        for (String s : set) {
            System.out.println(s);
        }

    }
}
